package com.wish.wishhouse_resource.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangshuxin
 * @since 2021-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_m_tenant")
public class TMTenant implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商户ID
     */
    @TableField("business_id")
    private Long businessId;

    /**
     * 租客姓名
     */
    @TableField("tenant_name")
    private String tenantName;

    /**
     * 租客证件类型
     */
    @TableField("tenant_certificate_type")
    private String tenantCertificateType;

    /**
     * 租客证件号码
     */
    @TableField("tenant_certificate_no")
    private String tenantCertificateNo;

    /**
     * 租客手机号
     */
    @TableField("tenant_phone")
    private String tenantPhone;

    /**
     * 租客联系地址
     */
    @TableField("tenant_relation_address")
    private String tenantRelationAddress;

    /**
     * 紧急联系电话
     */
    @TableField("emergency_relation")
    private String emergencyRelation;

    /**
     * 预留字段1
     */
    @TableField("reserve1")
    private String reserve1;

    /**
     * 预留字段2
     */
    @TableField("reserve2")
    private String reserve2;

    /**
     * 预留字段3
     */
    @TableField("reserve3")
    private String reserve3;

    /**
     * 预留字段4
     */
    @TableField("reserve4")
    private String reserve4;

    /**
     * 预留字段5
     */
    @TableField("reserve5")
    private String reserve5;

    /**
     * 删除标识
     */
    @TableField("del_flg")
    private Boolean delFlg;

    /**
     * 创建用户ID
     */
    @TableField("create_userid")
    private Long createUserid;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新用户ID
     */
    @TableField("update_userid")
    private Long updateUserid;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    @TableField(exist = false)
    private TCfContract tCfContract;


}
